package cn.bdqn.dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import cn.bdqn.bean.Provider;

/**
 * 供应商类接口方法
 * @author Administrator
 *
 */
public interface ProviderDao {
	//增加账单
	int addProvider(Connection con, Provider provider) throws SQLException;
	//修改账单信息
	int updateProvider(Connection con, Provider provider) throws SQLException;
	//删除账单
	int deleteProvider(Connection con, Provider provider) throws SQLException;
	//获取账单列表总记录数
	int getCount(Connection con, Provider provider) throws SQLException;
	//获取分页列表
	List<Provider> getList(Connection con, Provider provider, int pageIndex, int pageSize) throws SQLException;
	//根据id获取相应的详细用户信息
	Provider getProviderById(Connection con, int id) throws SQLException;
	//获取总列表
	List<Provider> getList(Connection con) throws SQLException;
}
